package com.dflc.entity.req;

import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotEmpty;

@Data
public class BackUserReq {

    /**
     * 用户账号
     */
    @NotEmpty(message = "个人用户账号名不能为空")
    private String userName;
    /**
     * 用户密码
     */
    @NotEmpty(message = "密码必须填写")
    @Length(min = 6, max = 18, message = "密码必须是6—18位字符")
    private String password;
    /**
     * 用户确认密码
     */
    @NotEmpty(message = "确认密码必须填写")
    @Length(min = 6, max = 18, message = "确认密码必须是6—18位字符")
    private String confirmPassword;

}
